package com.globallogic.capacitaciones.hibernate.domain;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name="custom_bid")
public class Bid extends PersistentObject {

	@Column(name="custom_amount")
	private BigDecimal amount;

	@Column(name="custom_created")
	private Date created;

	@OneToOne
	private User user;

	public Bid() {
		super();
	}

	public Bid(BigDecimal amount, Date created, User user) {
		super();
		this.amount = amount;
		this.created = created;
		this.user = user;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
}
